Class LootFunctionHelper

java.lang.Object
jeresources.api.util.LootFunctionHelper

public class LootFunctionHelper extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.world.level.storage.loot.LootContext
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    applyFunction(net.minecraft.world.level.storage.loot.functions.LootItemFunction lootFunction, LootDrop lootDrop)
     
    static int
    getMax(net.minecraft.world.level.storage.loot.providers.number.NumberProvider randomRange)
     
    static int
    getMin(net.minecraft.world.level.storage.loot.providers.number.NumberProvider randomRange)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • randContext

      public static final net.minecraft.world.level.storage.loot.LootContext randContext
  • Constructor Details

    • LootFunctionHelper

      public LootFunctionHelper()
  • Method Details

    • applyFunction

      public static void applyFunction(net.minecraft.world.level.storage.loot.functions.LootItemFunction lootFunction, LootDrop lootDrop)
    • getMin

      public static int getMin(net.minecraft.world.level.storage.loot.providers.number.NumberProvider randomRange)
    • getMax

      public static int getMax(net.minecraft.world.level.storage.loot.providers.number.NumberProvider randomRange)